import request from '@/utils/request'

// 查询素材库列表
export function listMaterial(query) {
  return request({
    url: '/shop/material/list',
    method: 'get',
    params: query
  })
}

//删除素材
export function remove(id) {
  return request({
    url: '/shop/material/' + id,
    method: 'delete'
  })
}

export function addMaterial(data) {
  return request({
    url: '/shop/material',
    method: 'post',
    data: data
  })
}

